//
//  message.m
//  NewApp
//
//  Created by  on 12-6-27.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "NAMessage.h"
#import "Constants.h"

@implementation NAMessage 
@synthesize mid,title,info,createAt,imageURL;

- (id) initWithDictionary:(NSDictionary *) dictionary {
    if (self = [super init]) {
        self.mid = [dictionary objectForKey:kID];
        self.title = [dictionary objectForKey:kTitle];
        self.info = [dictionary objectForKey:kInfo];
        self.createAt = [dictionary objectForKey:kCreateAt];
        self.imageURL = [dictionary objectForKey:kImageURL];
    }
    
    return self;
}

- (void) dealloc {
    [mid release];
    [title release];
    [info release];
    [createAt release];
    [imageURL release];
    [super dealloc];
}

@end
